Skip to content

fix: update slugify.d.ts to use namespace instead of module (TS1540)#206

Merged
Trott merged 1 commit intosimov:masterfrom
kongvut:fix/typescript-namespace
Mar 13, 2026
Merged

fix: update slugify.d.ts to use namespace instead of module (TS1540)#206
Trott merged 1 commit intosimov:masterfrom
kongvut:fix/typescript-namespace

Conversation

@kongvut
Copy link
Contributor

@kongvut kongvut commented Mar 3, 2026

Summary:

This PR fixes a TypeScript compilation error (TS1540) where the compiler complains about using the module keyword for a namespace declaration in slugify.d.ts.

Error Details:

error TS1540: A 'namespace' declaration should not be declared using the 'module' keyword. Please use the 'namespace' keyword instead.

Changes:

  • Changed declare module slugify to declare namespace slugify in slugify.d.ts

This change ensures compatibility with modern TypeScript versions (5.x+) while maintaining the existing type definitions.

Close TS1540 error where 'module' keyword is deprecated for namespace declarations.
@Trott Trott merged commit f1b83a4 into simov:master Mar 13, 2026
9 checks passed
@kongvut kongvut deleted the fix/typescript-namespace branch March 14, 2026 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants